import {formatDate} from '@angular/common';

export class GnDatetimeUtils {

  static format(value: string | number | Date, format: string): string {
    if (!value || value === '') {
      return null;
    }
    return formatDate(value, format, 'en');
  }

}
